<?php

/**
 * 影院管理 -> 影院列表
 */
class Action
{
    private $per_page = 100;

    public function __construct() {
    }

    /**
     * 显示列表
     */
    public function brief() {
        $page = Request::getParam('page_no', 1);
        $search_filter = Request::getParam('search_filter', array());
        $order_type = Request::getParam('order_type', -1);
        $include_zzb_code = Request::getParam('include_zzb_code', -1);
        $is_excel = Request::getParam('is_excel', 0);

        // 拼装搜索条件
        $filter = array();
        if (isset($search_filter['id']) && $search_filter['id']) {
            $filter['id'] = $search_filter['id'];
        }

        if ($include_zzb_code > -1) {
            if ($include_zzb_code == 0) {
                $filter['zzb_id'] = 0;
            } else {
                $filter['zzb_id >'] = 0;
            }
        }

        $filter['type'] = '100'; //'100' => '电影院'

        if (isset($search_filter['title']) && $search_filter['title']) {
            $filter['`title` LIKE '] = '%' . $search_filter['title'] . '%';
        }

        if (isset($search_filter['province_id']) && $search_filter['province_id']) {
            $filter['province_id'] = $search_filter['province_id'];
        } else {
            $search_filter['province_id'] = array();
        }

        if (!isset($search_filter['month'])) {
            $mlist = $this->getMonthList();
            $search_filter['month'] = end($mlist);
        }

        //获取省市
        $area = _model('region')->getList(array('status' => 1));
        $areaList = array();
        $provinceList = array();
        foreach ($area as $k => $v) {
            if ($v['depth'] == 1) {
                $provinceList[$v['area_code']] = $v['area'];
            }
            $areaList[$v['area_code']] = $v['area'];
        }

        //获取院线, 影投公司的影院
        $cinema_zzb_filter = array('1' => '1');
        if (isset($search_filter['circuit']) && $search_filter['circuit']) {
            $cinema_zzb_filter['`circuit` LIKE '] = '%' . $search_filter['circuit'] . '%';
        }
        if (isset($search_filter['investment_company']) && $search_filter['investment_company']) {
            $cinema_zzb_filter['`investment_company` LIKE '] = '%' . $search_filter['investment_company'] . '%';
        }

        // 获取所有专资办数据, 配合搜索
        $zzb_cinema_list = _model('cinema_zzb')->getList($cinema_zzb_filter);
        $zzb_cinema_all = array();
        foreach ($zzb_cinema_list as $k => $v) {
            $zzb_cinema_all[$v['zzb_code']] = $v;
        }

        $filter['is_delete'] = 1;
        // 专资办筛选影院
        if (isset($search_filter['circuit']) &&
            $search_filter['circuit'] ||
            isset($search_filter['investment_company']) &&
            $search_filter['investment_company']
        ) {
            $zzb_id_list = array_keys($zzb_cinema_all) ? array_keys($zzb_cinema_all) : 1;
            $filter['zzb_id'] = $zzb_id_list;
        }

        //筛选商店数据,首先筛选出符合的所有店铺列表
        $store_list = _model('store')->getFields('id', $filter);
        if (!$store_list) {
            $store_list = -1;
        }

        //排序
        $order_string = ' ORDER BY `id` DESC ';
        if ($order_type == 1) {
            $order_string = ' ORDER BY `box_office` DESC ';
        }
        if ($order_type == 2) {
            $order_string = ' ORDER BY `viewers` DESC ';
        }
        if ($order_type == 3) {
            $order_string = ' ORDER BY `order_money` DESC ';
        }
        if ($order_type == 4) {
            $order_string = ' ORDER BY `spp` DESC ';
        }

        //获取相关月份的数据
        $sectionMonth = $this->getTheMonth(date($search_filter['month'] . '-01'));
        $last_month = array(
            'month >=' => $sectionMonth[0],
            'month <=' => $sectionMonth[1],
            'store_id' => $store_list,
        );

        if ($is_excel) {
            $this->per_page = 3000;
        }

        //获取筛选出来的订单总金额, 获取下单影院数
        $cinema_month_money_sum_array = _model('cinema_month_report')->getFields('order_money', $last_month);
        $cinema_month_money_sum = 0; //
        $cinema_month_had_order_count = 0; //
        foreach ($cinema_month_money_sum_array as $value) {
            $cinema_month_money_sum = $cinema_month_money_sum + (int)$value;
            if ($value > 0) {
                $cinema_month_had_order_count++;
            }
        }

        //获取影院总数
        $cinema_month_total = _model('cinema_month_report')->getTotal($last_month); //

        // 获取订单总笔数
        $cinema_month_order_count_array = _model('cinema_month_report')->getFields('order_count', $last_month);
        $cinema_month_order_count_sum = 0; //
        foreach ($cinema_month_order_count_array as $value) {
            $cinema_month_order_count_sum = $cinema_month_order_count_sum + $value;
        }

        //获取相关影院所有的汇总数据
        $cinema_month_report = get_data_list('cinema_month_report', $filter = $last_month, $order = $order_string, $page_no = $page, $per_page = $this->per_page);

        if ($cinema_month_report) {
            $ids = array_column($cinema_month_report, 'store_id');
            $all_cinema_store = _model('store')->getList(array('id' => $ids));
            $all_stores = array();
            foreach ($all_cinema_store as $k => $v) {
                $all_stores[$v['id']] = $v;
            }
        }

        foreach ($cinema_month_report as $ck => $cv) {
            $cinema = $all_stores[$cv['store_id']];
            $cinema_month_report[$ck]['id'] = $cv['store_id'];
            $cinema_month_report[$ck]['zzb_id'] = $cinema['zzb_id'];

            $cinema_month_report[$ck]['cinema_name'] = $cinema['title'];
            if ($cinema['zzb_id'] && $cinema['zzb_id'] > 0) {
                $zzb_cinema = @$zzb_cinema_all[$cinema['zzb_id']];
                if ($zzb_cinema) {
                    $cinema_month_report[$ck]['cinema_name'] = $zzb_cinema['cinema_name'];
                    $cinema_month_report[$ck]['circuit'] = $zzb_cinema['circuit'];
                    $cinema_month_report[$ck]['investment_company'] = $zzb_cinema['investment_company'];
                }
            }

            $cinema_month_report[$ck]['province'] = @$areaList[$cinema['province_id']];
            $cinema_month_report[$ck]['city'] = @$areaList[$cinema['city_id']];
            $cinema_month_report[$ck]['county'] = @$areaList[$cinema['district_id']];

            $cinema_month_report[$ck]['add_time'] = $cinema['add_time'];
            $cinema_month_report[$ck]['type_name'] = $cinema['type'];
        }

        if ($is_excel) {
            $this->export_csv($cinema_month_report);
        }

        //影投公司和院线列表
        $investment_company = _model('cinema_investment_company')->getList(array('is_enable' => 1));
        $circuit = _model('cinema_circuit')->getList(array('is_enable' => 1));

        //

        Response::assign('store_list', $cinema_month_report);
        Response::assign('search_filter', $search_filter);
        Response::assign('monthList', $this->getMonthList());
        Response::assign('order_type', $order_type);
        Response::assign('provinceList', $provinceList);
        Response::assign('include_zzb_code', $include_zzb_code);
        Response::assign('investment_company', $investment_company);
        Response::assign('circuit', $circuit);

        Response::assign('cinema_month_money_sum', $cinema_month_money_sum);
        Response::assign('cinema_month_had_order_count', $cinema_month_had_order_count);
        Response::assign('cinema_month_total', $cinema_month_total);
        Response::assign('cinema_month_order_count_sum', $cinema_month_order_count_sum);

        Response::display('admin/cinema_brief.html');
    }

    //根据店铺id获取商铺额外信息
    private function get_detail($id = 0) {
        if (!$id) {
            return false;
        }

        $returnArray = [];

        //总进货金额
        $all_order = _model('order')->getList(array(
            'store_id' => $id,
            'is_enable' => '1',
            'status' => '1'
        ), ' order BY `receiver_time` DESC ');

        $returnArray['last_order_time'] = '';
        $returnArray['all_order_money'] = 0;

        if ($all_order) {
            $returnArray['last_order_time'] = $all_order[0]['add_time']; //最新进货时间
            $returnArray['all_order_money'] = 0;
            foreach ($all_order as $k => $v) {
                $returnArray['all_order_money'] += $v['price'];
            }
        }

        $new_month = array(
            'receiver_time >=' => $this->getTheMonth(date("Y-m-d")),
            'status' => 1,
            'is_enable' => 1
        );

        //本月进货
        $new_month['store_id'] = $id;
        $new_month_cinema_order = _model('order')->getList($new_month);
        $new_month_cinema_order_money = 0;
        foreach ($new_month_cinema_order as $kn => $vn) {
            $new_month_cinema_order_money = $new_month_cinema_order_money + (float)$vn['price'];
        }

        $returnArray['new_month_cinema_order_money'] = $new_month_cinema_order_money;

        $cinema = _model('store')->read(array('id' => $id));
        if ($cinema['zzb_id']) {
            $zzb_cinema = _model('cinema_zzb')->read(array('zzb_code' => $cinema['zzb_id']));
            $returnArray['circuit'] = $zzb_cinema['circuit'];
            $returnArray['investment_company'] = $zzb_cinema['investment_company'];
        } else {
            $returnArray['circuit'] = '';
            $returnArray['investment_company'] = '';
        }

        $owner = _model('user')->read(array('id' => $cinema['owner_id']));
        $agency = _model('user')->read(array('id' => $cinema['agency_id']));
        $cinema_assistant = _model('user')->read(array('id' => $cinema['cinema_assistant_id']));

        $returnArray['owner'] = '';
        $returnArray['agency'] = '';
        $returnArray['cinema_assistant'] = '';

        if ($owner) {
            $returnArray['owner'] = $owner['realname'] . ' / ' . $owner['mobile'];
        }
        if ($agency) {
            $returnArray['agency'] = $agency['realname'] . ' / ' . $agency['mobile'];
        }
        if ($cinema_assistant) {
            $returnArray['cinema_assistant'] = $cinema_assistant['realname'] . ' / ' . $cinema_assistant['mobile'];
        }

        return $returnArray;
    }

    // 导出省市合并数据
    public function combine_export() {
        $province_combine = Request::get('province_combine', '0');
        $city_combine = Request::get('city_combine', '0');
        $is_excel = Request::get('is_excel', '0');
        $month = Request::getParam('month', '0');

        if ($is_excel == '0' || $month == '0') {
            exit();
        }

        $filer = array();
        $filer['month >= '] = $this->getTheMonth(date($month . '-01'))[0];
        $filer['month <= '] = $this->getTheMonth(date($month . '-01'))[1];

        $recent_half_year_order_counts = _model('cinema_month_report')->getList($filer);

        $export_array = array();

        // 省市数据拿出来
        $area = _model('region')->getList(array('status' => 1));
        $provinceList = array();
        $cityList = array();
        $provinceCode = array();
        $cityCode = array();
        foreach ($area as $k => $v) {
            if ($v['depth'] == 1) {
                $provinceList[$v['area_code']] = $v['area'];
                $provinceCode[] = $v['area_code'];
            }
            if ($v['depth'] == 2) {
                $cityList[$v['area_code']] = $v['area'];
                $cityCode[] = $v['area_code'];
            }
        }

        if ($province_combine) {
            //                ['province_code']
            //                'province' => '',
            //                'box_office' => 0.0,
            //                'audience' => 0,
            //                'money' => 0.0,
            //                'order_count' => 0.0,
            //                'spp' => -1.0,
            foreach ($recent_half_year_order_counts as $v) {
                if (isset($export_array[$v['province']])) {
                    $export_array[$v['province']][1] += (float)$v['box_office'];
                    $export_array[$v['province']][2] += $v['viewers'];
                    $export_array[$v['province']][3] += (float)$v['order_money'];
                    $export_array[$v['province']][4] += $v['order_count'];
                } else {
                    if ($v['province'] == 0) {
                        // 省为0的时候忽略
                        continue;
                    }
                    $export_array[$v['province']] = array();
                    $export_array[$v['province']][0] = $provinceList[$v['province']];
                    $export_array[$v['province']][1] = (float)$v['box_office'];
                    $export_array[$v['province']][2] = $v['viewers'];
                    $export_array[$v['province']][3] = (float)$v['order_money'];
                    $export_array[$v['province']][4] = $v['order_count'];
                }
            }
            $export_array_final = array(array('省', '票房/元', '观影人次', '进货金额', '订单数', 'SPP'));
            foreach ($export_array as $k => $v) {
                $export_array[$k][5] = (float)($v[3] / $v[2]);
                $export_array_final[] = $export_array[$k];
            }

            //            var_dump($export_array_final);
            //            exit();

            _widget('tools.excel')->export('抱抱堂APP影院' . $month . '经营数据-省级汇总', array(
                array(
                    'name' => '抱抱堂APP影院' . $month . '经营数据-省级汇总',
                    'data' => array(
                        'data' => $export_array_final,
                    ),
                )
            ));
            return;
        }

        if ($city_combine) {
            //                ['city_code']
            //                'province' => '',
            //                'city' => '',
            //                'box_office' => 0.0,
            //                'audience' => 0,
            //                'money' => 0.0,
            //                'order_count' => 0,
            //                'spp' => -1.0,
            foreach ($recent_half_year_order_counts as $v) {
                if (isset($export_array[$v['city']])) {
                    $export_array[$v['city']][2] += (float)$v['box_office'];
                    $export_array[$v['city']][3] += $v['viewers'];
                    $export_array[$v['city']][4] += (float)$v['order_money'];
                    $export_array[$v['city']][5] += $v['order_count'];
                } else {
                    if ($v['city'] == 0) {
                        // 省为0的时候忽略
                        continue;
                    }
                    $export_array[$v['city']] = array();
                    $export_array[$v['city']][0] = $cityList[$v['city']];
                    if (!$cityList[$v['city']]) {
                        var_dump($v['city']);
                    }
                    $export_array[$v['city']][1] = $provinceList[$v['province']];
                    $export_array[$v['city']][2] = (float)$v['box_office'];
                    $export_array[$v['city']][3] = $v['viewers'];
                    $export_array[$v['city']][4] = (float)$v['order_money'];
                    $export_array[$v['city']][5] = $v['order_count'];
                }
            }
            $export_array_final = array(array('市', '省', '票房/元', '观影人次', '进货金额', '订单数', 'SPP'));
            foreach ($export_array as $k => $v) {
                $export_array[$k][6] = (float)($v[4] / $v[3]);
                $export_array_final[] = $export_array[$k];
            }

            //            var_dump($export_array);
            //            exit();

            _widget('tools.excel')->export('抱抱堂APP影院' . $month . '经营数据-市级汇总', array(
                array(
                    'name' => '抱抱堂APP影院' . $month . '经营数据-市级汇总',
                    'data' => array(
                        'data' => $export_array_final,
                    ),
                )
            ));
            return;
        }
    }

    // 影院月报表图表
    public function chart() {
        $province_ids = Request::getParam('province_ids', '0');
        $month = Request::getParam('month', '0');
        $province_query = array();
        if ($province_ids) {
            $province_query = explode(',', $province_ids);
        }
        if (!$month) {
            //近半年
            $recent_half_year_list = $this->recent_half_year(date('Y-m-d', strtotime(date('Y', time()) .
                                                                                     '-' .
                                                                                     (date('m', time()) - 1) .
                                                                                     '-30')));
        } else {
            $mlist = $this->getTheMonth(date($month . '-01'));
            $recent_half_year_list = $this->recent_half_year($mlist[0]);
        }

        $recent_half_year_date_list = array();
        $recent_half_year_all_list = array();
        $recent_half_year_all_list2 = array();
        foreach ($recent_half_year_list as $k => $v) {
            $recent_half_year_date_list[] = $k;
            $recent_half_year_all_list[$k] = array();
            $recent_half_year_all_list2[$k] = array();
        }

        //获取省
        $area = _model('region')->getList(array('status' => 1, 'area_code' => $province_query));
        $province_code_list = array();
        $province_name_list = array();
        $city_code_list = array();
        $city_name_list = array();
        $area_list = array();
        foreach ($area as $k => $v) {
            if ($v['depth'] == 1) {
                $province_code_list[] = $v['area_code'];
                $province_name_list[] = $v['area'];
                foreach ($recent_half_year_all_list as $k1 => $k2) {
                    $recent_half_year_all_list[$k1][$v['area_code']] = 0.0;
                }
            }
            if ($v['depth'] == 2) {
                $city_code_list[] = $v['area_code'];
                $city_name_list[] = $v['area'];
                foreach ($recent_half_year_all_list2 as $k1 => $k2) {
                    $recent_half_year_all_list2[$k1][$v['area_code']] = 0.0;
                }
            }
            $area_list[$v['area_code']] = $v['area'];
        }

        // 获取近半年的所有影院的订单情况
        $recent_half_year_list_simple = array_column($recent_half_year_list, 1);
        $recent_half_year_list_simple2 = array_column($recent_half_year_list, 0);
        $recent_half_year_order_counts = _model('cinema_month_report')->getList(array(
            'month <= ' => $recent_half_year_list_simple[count($recent_half_year_list_simple) -
                                                         1],
            'month >= ' => $recent_half_year_list_simple2[0]
        ));

        //格式化数据
        foreach ($recent_half_year_order_counts as $k => $v) {
            if (in_array($v['province'], $province_code_list)) {
                $recent_half_year_all_list[substr($v['month'], 0, 7)][$v['province']] = $recent_half_year_all_list[substr($v['month'], 0, 7)][$v['province']] +
                                                                                        (float)$v['order_money'];
            }

            if (in_array($v['city'], $city_code_list)) {
                $recent_half_year_all_list2[substr($v['month'], 0, 7)][$v['city']] = $recent_half_year_all_list2[substr($v['month'], 0, 7)][$v['city']] +
                                                                                     (float)$v['order_money'];
            }
        }

        $province_money = array();
        foreach ($province_code_list as $k => $v) {
            $province_money[] = array_column($recent_half_year_all_list, (int)$v);
        }

        // 计算最近一个月的top10省市

        //最近一个月的 [省, 钱], [市,钱] 对应
        $province_sum_list = array();
        $city_sum_list = array();
        $top10_province = $recent_half_year_all_list[$month];
        $top10_city = $recent_half_year_all_list2[$month];
        foreach ($province_code_list as $v) {
            $province_sum_list[$v] = @$top10_province[$v] ? $top10_province[$v] : 0;
        }
        foreach ($city_code_list as $v) {
            $city_sum_list[$v] = @$top10_city[$v] ? $top10_city[$v] : 0;
        }

        arsort($province_sum_list);
        arsort($city_sum_list);

        $top_province = array();
        $top_city = array();

        foreach ($province_sum_list as $k => $v) {
            $top_province[] = $area_list[$k];
        }
        foreach ($city_sum_list as $k => $v) {
            $top_city[] = $area_list[$k];
        }

        //        var_dump($top10_province);
        //        var_dump($top10_city);

        $returnArray = array(
            'recent_years' => $recent_half_year_date_list,
            'line_name' => $province_name_list,
            'money_list' => $province_money,
            'top_province' => $top_province,
            'top_city' => $top_city,
        );
        return_data(1, $returnArray);
    }

    public function detail() {
        $id = Request::getParam('id', 0);

        if (!$id) {
            return_data(0, '商铺信息有误');
        }

        $returnArray = $this->get_detail($id);

        return_data(1, $returnArray);
    }

    public function july() {
        //         以防万一,先注释掉执行代码
        $time = date('2016-10-30');
        $this->cinema_month_order($time);
        echo 'done 2016-10-30';
    }


    // 生成每个月报表数据
    private function cinema_month_order($give_time) {
        //指定月影院进货
        $all_cinema_list = _model('store')->getList(array(
            'type' => '100',
            'is_enable' => 1,
            'is_delete' => 1
        ));
        foreach ($all_cinema_list as $k => $v) {
            $give_month = $this->getTheMonth($give_time);
            $month = array(
                'store_id' => $v['id'],
                'add_time >=' => $give_month[0],
                'add_time <=' => $give_month[1],
                'status' => 1,
                'deliver_time > ' => '0000-00-00 00:00:00',
            );

            //获取的订单量
            $month_cinema_order = _model('order')->getList($month);
            //指定月份进货金额
            $month_cinema_order_money_count = 0.0;
            $new_month_cinema_order_count = count($month_cinema_order);
            foreach ($month_cinema_order as $mk => $mv) {
                $month_cinema_order_money_count = $month_cinema_order_money_count + (float)$mv['price'];
            }

            //指定月份票房
            $month_cinema_box_office_count = -1;
            $month_cinema_audience = -1;
            if ($v['zzb_id']) {
                $box_office_month = array(
                    'zzb_code' => $v['zzb_id'],
                    'box_office_month >=' => $give_month[0],
                    'box_office_month <=' => $give_month[1],
                );
                $box_office = _model('cinema_box_office')->read($box_office_month);
                if ($box_office) {
                    $month_cinema_box_office_count = $box_office['box_office'];
                    $month_cinema_audience = $box_office['audience'];
                }
            }

            $views = $month_cinema_audience ? $month_cinema_audience : (int)($month_cinema_box_office_count / 35);

            $cinema_month_report = _model('cinema_month_report')->create(array(
                'store_id' => $v['id'],
                'month' => $give_month[1],
                'box_office' => $month_cinema_box_office_count,
                'viewers' => $views,
                'order_money' => $month_cinema_order_money_count,
                'order_count' => $new_month_cinema_order_count,
                'spp' => ($month_cinema_box_office_count > 0) ? ((float)$month_cinema_order_money_count /
                                                                 ((float)$views)) : -1.0,
                'province' => $v['province_id'],
                'city' => $v['city_id'],
            ));
        }
    }

    public function wash_store_province() {
        $store_list = _model('store')->getList(array('province_id' => 0, 'agency_id <> ' => 0));
        foreach ($store_list as $k => $v) {
            $province = dealers_helper::get_dealers_location($v['agency_id'])[$v['agency_id']][0];
            $id = $v['id'];

            //            $update = _model('store')->update($id, array('province_id' => $province));
            var_dump($id, $province);
        }
        //        var_dump($store_list);
    }

    //返回从今年1月到目前的月份
    private function getMonthList() {
        $nowMonth = (int)date('m') - 1;
        $nowYear = (int)date('Y');

        $month_array = array();
        for ($i = 2016; $i <= $nowYear; $i++) {
            for ($j = 1; $j <= 12; $j++) {
                if ($nowYear == $i) {
                    if ($j > $nowMonth) {
                        break;
                    }
                }
                if ($j < 10) {
                    $month_array[] = $i . '-0' . $j;
                } else {
                    $month_array[] = $i . '-' . $j;
                }
            }
        }
        return $month_array;
    }

    //返回上个月时间段
    private function getLastMonth() {
        $time = time();
        $firstday = date('Y-m-01', strtotime(date('Y', $time) . '-' . (date('m', $time) - 1) . '-01'));
        $lastday = date('Y-m-d', strtotime("$firstday +1 month -1 day"));
        return array($firstday, $lastday);
    }

    private function getTheMonth($date) {//获取指定日期所在月的第一天和最后一天
        $firstday = date("Y-m-01 00:00:00", strtotime($date));
        $lastday = date("Y-m-d 23:59:59", strtotime("$firstday +1 month -1 day"));
        return array($firstday, $lastday);
    }


    /**
     * 三维数组转换
     * @return array
     */
    private function exchangeArr($arr) {
        if (!is_array($arr)) {
            return;
        }
        foreach ($arr as $key => $value) {
            foreach ($value as $k => $v) {
                $new_arr[$k][$key] = $v;
            }
        }
        return $new_arr;
    }

    //最近半年
    private function recent_half_year($givenMonth) {
        $now = date('Y-m-d');
        if ($givenMonth) {
            $now = $givenMonth;
        }
        $month_list = array();
        for ($i = 5; $i >= 0; $i--) {
            $oldday = date('Y-m-d', strtotime("$now - $i month"));
            $oldmonth = date('Y-m', strtotime("$now - $i month"));
            $month_list[$oldmonth] = $this->getTheMonth($oldday);
        }
        return $month_list;
    }

    private function export_csv($data) {
        if (!$data) {
            return;
        }

        $li[] = explode(',', '后台id,专资编码,影院名称,院线,影投公司,签约时间,省,市,区,票房/元,观影人次,进货金额,SPP');

        foreach ($data as $k => $v) {
            $li[] = array(
                $v['store_id'],
                $v['zzb_id'],
                $v['cinema_name'],
                $v['circuit'],
                $v['investment_company'],
                $v['add_time'],
                $v['province'],
                $v['city'],
                $v['county'],
                $v['box_office'],
                $v['viewers'],
                $v['order_money'],
                $v['spp']
            );
        }

        _widget('tools.excel')->export('影院月数据_' . time(), array(
            array(
                'name' => '影院月报表',
                'data' => array(
                    'data' => $li,
                ),
            )
        ));
    }
}
